extends layout 

block content 

  h1 #{title}

  form(method='POST')
    .form-group 
      label(for='first_name') First Name:
      input#first_name.form-control(type='text', placeholder='First name' name='first_name', value=(undefined===author ? '' : author.first_name))
      label(for='family_name') Family Name:
      input#family_name.form-control(type='text', placeholder='Family name' name='family_name', value=(undefined===author ? '' : author.family_name))
    .form-group
      label(for='date_of_birth') Date of birth: 
      input#date_of_birth.form-control(type='date' name='date_of_birth' value=(undefined===author ? '' : author.birth_date_formatted) )
      label(for='date_of_death') Date of Death: 
      input#date_of_death.form-control(type='date' name='date_of_death' value=(undefined===author? '' : author.death_date_formatted) )
    button.btn.btn-primary(type='submit') Submit
  
  if errors
    ul
      for error in errors
        li(style='color: red;')!= error.msg